
root=Node()
axes = Node(root)
axes.Load("axes.osg")
axes.SetScale(10,10,10)

m = Morph(root)
m.Load("cina.osg",  "skin_hi:FaceGen" )
m.AddTarget("cina_ExpressionSmileOpen.obj",     "skin_hi:FaceGen" )
m.AddTarget("cina_ModifierBlinkLeft.obj",       "skin_hi:FaceGen" )
m.AddTarget("cina_ExpressionFear.obj",          "skin_hi:FaceGen" )
m.AddTarget("cina_Corrector.obj",               "objskin_hi" )
m.SetTargetWeight(3,1)

ha = Node(m)
ha.Load("hair.osg")

viewer.SetRoot(root)    
cm.Fit(m)    
cp = CameraPose (0.155197, 26.8451, -15.5425, 572.158, 68.07, 0.959794, -0.21221, -0.183748)
cm.SetPose(cp)
#---------------------------------    
def cp():
    print "cp = CameraPose", cm.GetPose().Repr()
    
#---------------------------------    

def slide0():

    am.clear()
    Anim2(T,1,   m.SetTargetWeights, Vec(0,0,0), Vec(1,0,0) )
    Anim2(T,0.2, m.SetTargetWeights, Vec(0,0,0), Vec(0,1,0) )
    Anim2(T,1,   m.SetTargetWeights, Vec(0,0,0), Vec(0,0,1) )
    am.play()
   

#---------------------------------    
slides = [
  ("Slide0---",slide0),
]


